function h=ClusterVarSelect(dt,VarSelect)

% ClusterVarSelect opens solo double clustering figure and creates dendrogram for selected variables 
% Syntax: h=ClusterVarSelect(dt,VarSelect)
% Description : VarSelect can be the numerical indexes of the variables or a cell array
%                        with the variable names.
%
%Jonas Almeida 

h=open('double_cluster_solo.fig');
if iscell(VarSelect)
    for i=1:length(VarSelect)
        s(i)=strmatch(VarSelect{i},dt.vars);
    end
    VarSelect=s;
end

dt.vars=dt.vars(VarSelect);
dt.nx=dt.nx(:,VarSelect);
double_cluster_dt_for_GUI(dt,h)
%disp(':-)')
